package com.mxchen.lottery.app.activity;
import com.alibaba.cola.dto.SingleResponse;
import com.mxchen.lottery.app.activity.command.query.ActivityGetQryExe;
import com.mxchen.lottery.client.activity.api.ActivityBoothService;
import com.mxchen.lottery.client.activity.dto.ActivityDTO;
import com.mxchen.lottery.client.activity.dto.ActivitySingleQry;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

/**
 * @program: lottery
 * @description:
 * @author: hmxchen
 * @create: 2021-12-10 10:04
 **/
@Slf4j
@Service
public class ActivityBoothServiceImpl implements ActivityBoothService {

    @Resource
    private ActivityGetQryExe activityGetQryExe;
    @Override
    public SingleResponse<ActivityDTO> queryActivityById(ActivitySingleQry qry) {
        return activityGetQryExe.execute(qry);
    }
}
